package jp.reflexworks.soap.util;

import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;

import jp.reflexworks.soap.model.Login;



public class JdoUtils {

	public static void insert(Login entry) {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		pm.makePersistent(entry);
	}

	public static List<Login> getEntries() {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		Query query = pm.newQuery(Login.class);

		List<Login> entries = (List<Login>) query.execute();
		return entries;
	}

}
